home *** CD-ROM | disk | FTP | other *** search
- Spirograph 1.00 (C) Michael Husted
- ===================================
-
- About installation - see INSTAL95.TXT
-
- Sorry about my English, but I just didn't bother finding the dictionary and
- grammar to write this document :-)
-
- ABOUT THE PROGRAM
-
- This program draws some very pretty graphic figures from the parameters, that
- you enter. Try it out, and you may be amazed. The program is freeware. Feel
- free to give it to anyone, upload it to a BBS or put it on a CDROM.
-
- INSTRUCTIONS
-
- To get an impression of the program, I can suggest, that you begin with
- pressing "AutoRun", which draws random figures until you press "Stop Draw".
-
- In manual mode you can enter parameters for drawing figures, which can be
- differed for the x- and y-axis. If you don't enter a value in the y-column,
- the same value is used here as entered in the x-column.
-
- The figures are calculated from the following formula:
-
- x = cos(t)^xPwr1 - xFreq * cos(xAmp * t)^xPwr2
- y = sin(t)^yPwr1 - yFreq * cos(yAmp * t)^yPwr2
-
- "Amp" is the "amplitude". For example will 0.1 give a little change from
- the correct circle of 1/10, while 1 gives a change from the correct circle of
- the radius of the circle, and 1 a change larger than radius. Negative values
- will rotate the figure a little.
-
- "Freq" is the frequency. This is the number of "leaves", that you will get
- on the figure (actually it's one more than the number you enter). If you enter
- a negative value, the "leaves" are drawn towards the centre of the figure
- instead of normal "leaves" of a flower. When negative values are used, the
- number of leaves is one less than the number entered. Decimal values can be
- used too.
-
- "Pwr1" and "Pwr2" are powers, to which the calculated values can be raised to.
- For example if you use the power 2 for all field, you will see, that a
- square will be drawn (with leaves accordingly to "Amp" and "Freq"), which is
- given from the "oldie": sin^2(x)+cos^2(x)=1. Negative powers can be used for
- drawing only a part of the figure.
-
- "Rot" is the rotation, and this is the percentage, that you wish the figure
- to be rotated. For example means 10, that the figure is rotated 10 percent.
- If you use a negative value, the absolute value is used as a factor, to which
- the first cosine/sine value is multiplied, when drawing the value.
-
- "Wst" is the whisting value, and you can strech the figure by entering another
- value than zero here. For example to illustrate this parameter, try 10. If you
- use 50, the figure is "reversed" (try it - can't be described) until you get
- to 100, which is the same as 0 (no whisting). A negative value multiplies the
- absolute value of this field to the "Amp"-value. By using 6 to 8 you will get a
- ribbon-like figure.
-
- You can click on < and > , when a field got focus, to change the value
- down/up. Doubleclick will change the parameters with ten times the speed.
-
- You have the possibility to change the foreground and background colour using
- "Foreground" and "Background". You can erase the screen using "Clean", if
- "AutoClean" isn't active, and you can save and load drawn pictures or their
- parameters, if you wish to draw the same figure again in an easy way.
-
- Eventually try loading the DEMO-?.PAR-files, which illustrate the capabilities
- of the program better than all my descriptions. You can also print the figures,
- but be aware, that the "AutoRedraw" option should be turned on or you will not
- get anything printed, which also is necessary if you wish to save a picture.
- If you print a figure, you should consider changing the foreground and
- background colours, as the printer will soon dry out of ink, if you print a
- figure using the default black colour! "AutoRedraw" turned on means, that if
- another window is positioned upon the figure, Windows will automatically
- redraw it, and if it's turned off, the figure is not redrawn (i.e. there is
- a "hole", where the window was). The speed of drawing is although lower,
- when AutoRedraw is turned on.
-
- And now for the drawing: "Draw" (as you might have figured out:-) draws a
- figure with the entered values. If no values are entered, a random figure
- is drawn. "AutoRun" always draws random figures, and you can stop the "AutoRun"
- mode using the "Stop Draw" button, which is actually the same button.
-
- "Close" closes the program after asking, if you wish to save the setup.
- But this button has more functions. It can be used for changing the setup
- while running the program, by entering ! in the x-column of "Amp". Then you
- enter setup parameters in the other fields. See SETUP PARAMETERS for this.
- You can open this file by entering ? in the x-column of "Amp" and click
- "Close".
-
- Other facilities: If you wish to draw more figures on the same screen,
- turn off "AutoClean" and click with the mouse on the corner, from which you
- want to draw from, hold down the mouse botton, and release, when you get to
- the corner (diagonally) to which, the figure should be. If you don't see a
- line, when choosing the last corner, change the value "Mouse Delay" in the
- setup parameters to a larger value.
-
- SETUP PARAMETERS
-
- In the text file SPIRODEF.TXT the setup parameters are saved. Most of these
- can be changed from the program too as described earlier (use ! in the X-Amp).
- In the description below the field names (for example Y-Pwr2 means the Pwr2
- field in the y column) are found in the []-brackets after the description.
-
- You can use everything after the ' for comments, but if you save settings in
- the program, these comments are lost! (This is not a good solution, but a
- coming version of the program should take hand of this).
-
- 255 ' foreground colour (red)
- 255 ' foreground colour (green) <- 255 in all these results in white
- 255 ' foreground colour (blue)
- 0 ' background (red)
- 0 ' background (green) <- 0 in all these results in black
- 0 ' background (blue)
- 0 ' 1=random choice of foreground colour / 2=random choice of background
- 3=both 1 & 2 [Y-Pwr2]
- 0 ' frame background colour (RGB)
- 65535 ' frame foreground colour i.e. texts like "Freq" (RGB)
- 1 ' AutoClean (1=Auto clean screen, when a new figure is drawn)
- 0 ' AutoRedraw (1=screen is automatically redrawn, if other windows have
- "spoiled" it. Also set this to 1, if you wish to save or print a figure,
- but beware, that drawing figures takes more time, when this is on.
- 300 ' step size - the size of the steps used, when a figure is drawn.
- The larger this value the longer drawing time, but you may have to
- lower this program, if you want to draw advanced figures. I use 1000
- on my oldie (486/66), which gives rather coarse drawn figures. [X-Pwr1]
- 1 ' numbers of times, a drawing should be repeated. If you draw advanced
- figures, use a larger number than one, and if you use an old and slow pc,
- use a lower value. [X-Freq]
- 1 ' pen size (the thickness of the drawing pen - 1 is recommended) [Y-Amp]
- 13 ' draw mode - not all values are interesting, but nevertheless:
- 1=blackness / 2=not merge / 3=mask not pen / 4= not copy
- pen / 5=mask pen not / 6=invert / 7=xor pen / 8=not mask pen /
- 9=mask pen / 10=not xor pen / 11=no operation / 12=merge not pen /
- 13=copy (default) / 14=merge pen not / 15=merge pen / 16=whiteness
- Some of the invert/xor modes are interesting, if you change the pen size
- and turn off the AutoRedraw. [Y-Freq]
- 0 ' Height of the program window (0=height is set to screen height)
- 0 ' Distance from top of screen to program window
- 0 ' Width of the program windows (0=suitable for the height - recommended)
- 0 ' Distance from the left size of the screen to program window
- 0 ' The distance of the frame from the right edge of the program window.
- With some screen drivers, you will have to raise this value to 50 or 100.
- 50 ' Distance (x) from left side of program window when drawn [Y-Rot]
- 50 ' Distance (y) from top of program window when drawn [Y-Wst]
- 1 ' Part of screen used (x) (1=all screen width - recommended)
- 1 ' Part of screen used (y) (1=all screen height - recommended)
- 300 ' Mouse delay used, when clicking on the screen is used for determining
- the area of the screen used for drawing a figure. If you don't see the
- line from the "from"-position when choosing the "to"-position, raise
- this value. [X-Rot]
- 900 ' time delay before begin of drawing of a new figure by "AutoRun" [X-Wst]
-
- NICE TO KNOW
-
- The newest version can always be found at: "http://login.dknet.dk/~husted".
-
- If you find any errors or have some suggestions for improving the program:
- e-mail: husted@login.dknet.dk
- snail-mail: Michael Husted H¯jagerparken 95,2.sal 2750 Ballerup
-
-